﻿namespace YiShop.System.Controllers
{
    [Route("system/config")]
    public class SysConfigController : ControllerBase
    {
        private readonly SysConfigServer _sysConfigService;
        public SysConfigController(SysConfigServer sysConfigService)
        {
            _sysConfigService = sysConfigService;
        }

        /// <summary>
        /// 查询参数配置表列表
        /// </summary>
        [HttpGet("list")]
        public async Task<SqlSugarPagedList<SysConfigDto>> GetSysConfigList([FromQuery] SysConfigDto dto)
        {
            return await _sysConfigService.GetDtoPagedListAsync(dto);
        }
    }
}